#!/bin/sh

if [ -n "`%OPTWARE_TARGET_PREFIX%/bin/pidof mpd`" ]; then 
    %OPTWARE_TARGET_PREFIX%/bin/killall mpd 2>/dev/null
fi

umask 077

%OPTWARE_TARGET_PREFIX%/bin/mpd %OPTWARE_TARGET_PREFIX%/etc/mpd.conf &
